import request from "../request.js"
import {
	BASE_URL,
	GET_RECOMMEND_MENU_LIST,
	GET_ISFREE_MENU_LIST,
	GET_LIKE_MENU,
	GET_VIP_EXCLUSIVE,
	GET_TOP_UP_LIST,
	OPEN_VIP
} from "../const.js"

const member = {
	getRecommendMenuList(token) {
		return request({
			url: BASE_URL + GET_RECOMMEND_MENU_LIST,
			header: {
				Authorization: token
			}
		})
	},
	getisFreeMenuList(token) {
		return request({
			url: BASE_URL + GET_ISFREE_MENU_LIST,
			header: {
				Authorization: token
			}
		})
	},
	likeMenu(token) {
		return request({
			url: BASE_URL + GET_LIKE_MENU,
			header: {
				Authorization: token
			}
		})
	},
	vipExclusive(token) {
		return request({
			url: BASE_URL + GET_VIP_EXCLUSIVE,
			header: {
				Authorization: token
			}
		})
	},
	topupList(token) {
		return request({
			url: BASE_URL + GET_TOP_UP_LIST,
			header: {
				Authorization: token
			}
		})
	},
	openVip(token,data) {
		return request({
			url: BASE_URL + OPEN_VIP,
			header: {
				Authorization: token
			},
			data
			
		})
	}
	
}

export default member;
